package com.mayo.series.alphabetic;

import java.util.List;

import android.content.Context;
import android.view.View;
import android.widget.TextView;

import com.mayo.series.R;

public class SerieAdapter extends SerieListAdapter{

	public SerieAdapter(Context _context, int _resource,
			List<SerieItemInterface> _items) {
		super(_context, _resource, _items);
	}
	
	// override this for custom drawing
	public void populateDataForRow(View parentView, SerieItemInterface item , int position){
		// default just draw the item only
		View infoView = parentView.findViewById(R.id.infoRowContainer);
//		TextView fullNameView = (TextView)infoView.findViewById(R.id.fullNameView);
		TextView nicknameView = (TextView)infoView.findViewById(R.id.nickNameView);
		
		nicknameView.setText(item.getItemForIndex());
		
//		if(item instanceof SerieItem){
//			SerieItem contactItem = (SerieItem)item;
//			fullNameView.setText(contactItem.getEmision());
//		}
	}
	
	
}
